package com.gopay.scheduler.dao.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.domain.fund.FundGopayFileEntity;
import com.gopay.scheduler.dao.FundFileTemplateDao;
@Repository(value="fundFileTemplateDao")
public class FundFileTemplateDaoImpl extends BaseDAOImpl<FundGopayFileEntity, Serializable> implements FundFileTemplateDao {
    @Override
    public int getFundFileInfoByFileName(String fileName) {
        // TODO Auto-generated method stub
        Map<String,Object> param = new HashMap<String,Object>();
        
        param.put("fileName", fileName);
        String sql ="select count(*) from FUND_GOPAY_FILE where FILE_NAME =:fileName";
        
        int resultCount = super.findCountBySql(sql, param);
        
        return resultCount;
    }

}
